package com.pi.pro.xcmg.am.was.edi.led.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author shenzq
 */
@Data
public class LedItemDetail {

    private String itemCode;
    private String itemName;
    private BigDecimal qty;
    private String unitName;

    //顺序号: 1/3
    private String workSequence;
    //工位
    private String workPalce;
    //配送点
    private String deliveryPlacee;


    public String toString() {
        StringBuffer buf = new StringBuffer();
        buf.append("{");

        //
        buf.append("itemCode:");
        if (this.itemCode != null) {
            buf.append(this.itemCode);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("itemName:");
        if (this.itemName != null) {
            buf.append(this.itemName);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("qty:");
        if (this.qty != null) {
            buf.append(this.qty.stripTrailingZeros().toPlainString());
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("unitName:");
        if (this.unitName != null) {
            buf.append(this.unitName);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("workSequence:");
        if (this.workSequence != null) {
            buf.append(this.workSequence);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("workPalce:");
        if (this.workPalce != null) {
            buf.append(this.workPalce);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("deliveryPlacee:");
        if (this.deliveryPlacee != null) {
            buf.append(this.deliveryPlacee);
        } else {
            buf.append("");
        }
        buf.append("");
        buf.append("}");
        return buf.toString();
    }
}
